package com.qianniu.napi.admin.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 个人账务表
 * </p>
 *
 * @author chenxuebin
 * @since 2018-07-07
 */
@TableName("t_account")
public class Account extends Model<Account> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
	private Long uid;
	private Long mid;
	private Long mpid;
	private Long version;
	private String unionid;

    /**
     * 余额
     */
	private BigDecimal amount;
    /**
     * 佣金额
     */
	private BigDecimal fanli;
    /**
     * 总金额
     */
	private BigDecimal total;
	/**
	 * 冻结金额
	 */
	private BigDecimal freeze;

	private BigDecimal fanliing;

	@TableField("charge_amount")
	private BigDecimal chargeAmount;

	/**
	 * 累计提现金额
	 */
	private BigDecimal withdraw;
	private BigDecimal withdrawing;
	private BigDecimal yajin;
	private BigDecimal ljxiaofei;

	@TableField("unuse_amount")
	private BigDecimal unuseAmount;

	private BigDecimal mamount;

	private Integer state;
    /**
     * 手机号
     */
	private String nickname;
	private String headimg;
	private String phone;
	private Date createtime;
	private Date modifytime;
	private Long modifier;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getUid() {
		return uid;
	}

	public void setUid(Long uid) {
		this.uid = uid;
	}

	public Long getMid() {
		return mid;
	}

	public void setMid(Long mid) {
		this.mid = mid;
	}

	public Long getMpid() {
		return mpid;
	}

	public void setMpid(Long mpid) {
		this.mpid = mpid;
	}

	public Long getVersion() {
		return version;
	}

	public void setVersion(Long version) {
		this.version = version;
	}

	public String getUnionid() {
		return unionid;
	}

	public void setUnionid(String unionid) {
		this.unionid = unionid;
	}

	public BigDecimal getWithdraw() {
		return withdraw;
	}

	public void setWithdraw(BigDecimal withdraw) {
		this.withdraw = withdraw;
	}

	public BigDecimal getWithdrawing() {
		return withdrawing;
	}

	public void setWithdrawing(BigDecimal withdrawing) {
		this.withdrawing = withdrawing;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public BigDecimal getMamount() {
		return mamount;
	}

	public void setMamount(BigDecimal mamount) {
		this.mamount = mamount;
	}

	public BigDecimal getFanli() {
		return fanli;
	}

	public void setFanli(BigDecimal fanli) {
		this.fanli = fanli;
	}

	public BigDecimal getFreeze() {
		return freeze;
	}

	public void setFreeze(BigDecimal freeze) {
		this.freeze = freeze;
	}

	public BigDecimal getTotal() {
		return total;
	}

	public void setTotal(BigDecimal total) {
		this.total = total;
	}

	public BigDecimal getFanliing() {
		return fanliing;
	}

	public void setFanliing(BigDecimal fanliing) {
		this.fanliing = fanliing;
	}

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public BigDecimal getChargeAmount() {
		return chargeAmount;
	}

	public void setChargeAmount(BigDecimal chargeAmount) {
		this.chargeAmount = chargeAmount;
	}

	public BigDecimal getUnuseAmount() {
		return unuseAmount;
	}

	public void setUnuseAmount(BigDecimal unuseAmount) {
		this.unuseAmount = unuseAmount;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Date getModifytime() {
		return modifytime;
	}

	public void setModifytime(Date modifytime) {
		this.modifytime = modifytime;
	}

	public Long getModifier() {
		return modifier;
	}

	public void setModifier(Long modifier) {
		this.modifier = modifier;
	}

	public BigDecimal getYajin() {
		return yajin;
	}

	public void setYajin(BigDecimal yajin) {
		this.yajin = yajin;
	}

	public BigDecimal getLjxiaofei() {
		return ljxiaofei;
	}

	public void setLjxiaofei(BigDecimal ljxiaofei) {
		this.ljxiaofei = ljxiaofei;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getHeadimg() {
		return headimg;
	}

	public void setHeadimg(String headimg) {
		this.headimg = headimg;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Account{" +
			"id=" + id +
			", uid=" + uid +
			", unionid=" + unionid +
			", amount=" + amount +
			", fanli=" + fanli +
			", total=" + total +
			", phone=" + phone +
			", createtime=" + createtime +
			", modifytime=" + modifytime +
			"}";
	}
}
